<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Purchasing.ReconcileOrders" EnableViewState="True"
    CodeFile="ReconcileOrders.aspx.cs" %>

<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Reconcile</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
    <style type="text/css">.sc { SCROLLBAR-FACE-COLOR: #8080ff; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #ddddff }
		</style>
</head>
<body dir="ltr">
    <form method="post" id="ReconcileOrdersForm" runat="server">
        <table class="Container" width="100%" cellspacing="0">
            <tr>
                <td>
                    <table class="Header" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="insightHeader" runat="server"></cc1:Header>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:PurchasingSubNavigation ID="purchasingSubNaviagation" runat="server"></cc1:PurchasingSubNavigation>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td align="left">
                                <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table width="100%" cellpadding="10" cellspacing="10" style="background-color:#ffffff">
                        <tr>
                            <td>
                                <cc2:ExpandingPanel ID="expandingPanel" runat="server" ExpansionToggler="expansionToggler"
                                    IsExpanded="true">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc1:CommonSearch ID="commonSearch" runat="server" Module="Purchasing" ExtendedSearchControl="purchasingSearch"
                                                        OnSearch="OnSearch" OnClearSelection="OnClearSelection" Field1Prompt="ID #:"
                                                        Field1ID="poNumber" Field2Prompt="Vendor:" Field2Style="DataInput_Wide" Field2ID="vendorName"
                                                        ViewOptionVisible="false" COSPickerVisible="true" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="PanelSeparator">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <cc2:ExpansionToggler ID="expansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc1:PurchasingSearch ID="purchasingSearch" runat="server" TransactionTypeFilterVisible="false"
                                                        OrderTypeFilterVisible="false" EnteredByFilterVisible="false" UserOrderTypeVisible="true"
                                                        RequisitionNumberFilterVisible="false" VoucherNumberFilterVisible="false" InvoiceDateFilterVisible="true"
                                                        TotalOrderAmountFilterVisible="true" AccountNumberFilterVisible="false" CategoryFilterVisible="false"
                                                        TransactionsWithinFilterVisible="true" ReconcileTypeFilterVisible="true" AddUserOrderTypeSelectPrompt="false">
                                                    </cc1:PurchasingSearch>
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc2:ExpandingPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table class="Invisible" id="dynamicTable" cellspacing="10">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" ContainerID="dynamicTable" runat="server">
                                </cc2:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" ContainerID="dynamicTable" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <table class="PlaceBar" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td class="PageName">
                                            Reconcile</td>
                                        <td align="center">
                                            <cc1:RefreshDates ID="refreshDates" runat="server" SalaryAsOfDateVisible="false"
                                                POAPAsOfDateVisible="True" GLAsOfDateVisible="True"></cc1:RefreshDates>
                                        </td>
                                        <td align="right">
                                            <cc1:InsightDownloadBar ID="insightDownloadBar" runat="server"></cc1:InsightDownloadBar>
                                        </td>
                                    </tr>
                                </table>
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <table id="unmatchedTable" cellspacing="0" cellpadding="0" width="100%" runat="server"
                                                border="0">
                                                <tr>
                                                    <td style="width:49%">
                                                        <table cellspacing="0" cellpadding="0" width="100%">
                                                            <tr class="ReconcileTitleBar">
                                                                <td>
                                                                    &nbsp;Insight Transactions</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="center">
                                                                    <div id="divInsight" style="overflow: auto; width: 100%; height: 300px; text-align: left">
                                                                        <asp:DataGrid ID="insightDataGrid" CssClass="DataGrid" Width="100%" AutoGenerateColumns="False"
                                                                            AllowSorting="True" AllowPaging="False" runat="server">
                                                                            <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                                                            <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                                                            <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                                                            <Columns>
                                                                                <asp:BoundColumn Visible="False" DataField="OrderTypeID" ReadOnly="True"></asp:BoundColumn>
                                                                                <asp:BoundColumn Visible="False" DataField="OrderID" ReadOnly="True"></asp:BoundColumn>
                                                                                <asp:BoundColumn DataField="OrderType" ReadOnly="True" HeaderText="Type"></asp:BoundColumn>
                                                                                <asp:ButtonColumn DataTextField="OrderNumber" SortExpression="OrderNumber" HeaderText="ID #"
                                                                                    CommandName="UserOrderDetails.aspx">
                                                                                    <ItemStyle Font-Bold="True"></ItemStyle>
                                                                                </asp:ButtonColumn>
                                                                                <asp:BoundColumn Visible="True" DataField="FundNumber" SortExpression="FundNumber"
                                                                                    ReadOnly="True" HeaderText="Fund #"></asp:BoundColumn>
                                                                                <asp:BoundColumn DataField="TotalAmount" SortExpression="TotalAmount" ReadOnly="True"
                                                                                    HeaderText="Total Amount">
                                                                                    <ItemStyle CssClass="currency"></ItemStyle>
                                                                                </asp:BoundColumn>
                                                                                <asp:BoundColumn DataField="RequestorName" SortExpression="RequestorName" ReadOnly="True"
                                                                                    HeaderText="Requestor"></asp:BoundColumn>
                                                                                <asp:BoundColumn Visible="True" DataField="Vendor" SortExpression="Vendor" ReadOnly="True"
                                                                                    HeaderText="Vendor"></asp:BoundColumn>
                                                                                <asp:BoundColumn Visible="True" DataField="InvoiceNumber" SortExpression="InvoiceNumber"
                                                                                    ReadOnly="True" HeaderText="Invoice #"></asp:BoundColumn>
                                                                                <asp:BoundColumn Visible="True" DataField="InvoiceDate" SortExpression="InvoiceDate"
                                                                                    ReadOnly="True" HeaderText="Invoice Date"></asp:BoundColumn>
                                                                            </Columns>
                                                                        </asp:DataGrid>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td style="width:2%">
                                                        &nbsp;</td>
                                                    <td style="width:49%">
                                                        <table cellspacing="0" cellpadding="0" width="100%">
                                                            <tr class="ReconcileTitleBar">
                                                                <td>
                                                                    &nbsp;PeopleSoft Transactions<br />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="center">
                                                                    <div id="divPS" style="overflow: auto; width: 100%; height: 300px; text-align: left">
                                                                        <asp:DataGrid ID="peopleSoftDataGrid" CssClass="DataGrid" Width="100%" AutoGenerateColumns="False"
                                                                            AllowSorting="True" AllowPaging="False" runat="server">
                                                                            <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                                                            <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                                                            <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                                                            <Columns>
                                                                                <asp:BoundColumn Visible="False" DataField="OrderTypeID" ReadOnly="True"></asp:BoundColumn>
                                                                                <asp:BoundColumn Visible="False" DataField="OrderID" ReadOnly="True"></asp:BoundColumn>
                                                                                <asp:BoundColumn DataField="OrderType" ReadOnly="True" HeaderText="Type"></asp:BoundColumn>
                                                                                <asp:ButtonColumn DataTextField="OrderNumber" SortExpression="OrderNumber" HeaderText="ID #"
                                                                                    CommandName="Select_Transaction">
                                                                                    <ItemStyle Font-Bold="True"></ItemStyle>
                                                                                </asp:ButtonColumn>
                                                                                <asp:BoundColumn Visible="True" DataField="FundNumber" SortExpression="FundNumber"
                                                                                    ReadOnly="True" HeaderText="Fund #"></asp:BoundColumn>
                                                                                <asp:BoundColumn DataField="TotalAmount" SortExpression="TotalAmount" ReadOnly="True"
                                                                                    HeaderText="Total Amount">
                                                                                    <ItemStyle CssClass="currency"></ItemStyle>
                                                                                </asp:BoundColumn>
                                                                                <asp:BoundColumn DataField="RequestorName" SortExpression="RequestorName" ReadOnly="True"
                                                                                    HeaderText="Requestor"></asp:BoundColumn>
                                                                                <asp:BoundColumn Visible="True" DataField="Vendor" SortExpression="Vendor" ReadOnly="True"
                                                                                    HeaderText="Vendor"></asp:BoundColumn>
                                                                                <asp:BoundColumn Visible="True" DataField="InvoiceNumber" SortExpression="InvoiceNumber"
                                                                                    ReadOnly="True" HeaderText="Invoice #"></asp:BoundColumn>
                                                                                <asp:BoundColumn Visible="True" DataField="InvoiceDate" SortExpression="InvoiceDate"
                                                                                    ReadOnly="True" HeaderText="Invoice Date"></asp:BoundColumn>
                                                                            </Columns>
                                                                        </asp:DataGrid>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table id="matchedTable" cellspacing="0" cellpadding="0" width="100%" runat="server">
                                                <tr>
                                                    <td>
                                                        <asp:DataGrid ID="matchedOrdersDataGrid" CssClass="DataGrid" Width="100%" AutoGenerateColumns="False"
                                                            AllowSorting="True" runat="server">
                                                            <EditItemStyle CssClass="DataGridEditRow"></EditItemStyle>
                                                            <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                                            <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                                            <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                                            <Columns>
                                                                <asp:BoundColumn Visible="False" DataField="OrderTypeID" ReadOnly="True"></asp:BoundColumn>
                                                                <asp:BoundColumn Visible="False" DataField="OrderID" ReadOnly="True" HeaderText="TransactionID">
                                                                </asp:BoundColumn>
                                                                <asp:BoundColumn DataField="Source" ReadOnly="True" HeaderText="Source"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="OrderType" ReadOnly="True" HeaderText="Type"></asp:BoundColumn>
                                                                <asp:ButtonColumn DataTextField="OrderNumber" SortExpression="OrderNumber" HeaderText="ID #"
                                                                    CommandName="redirect">
                                                                    <ItemStyle Font-Bold="True"></ItemStyle>
                                                                </asp:ButtonColumn>
                                                                <asp:BoundColumn Visible="True" DataField="FundNumber" SortExpression="FundNumber"
                                                                    ReadOnly="True" HeaderText="Fund #"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="Amount" SortExpression="Amount" ReadOnly="True" HeaderText="Amount">
                                                                    <ItemStyle CssClass="currency"></ItemStyle>
                                                                </asp:BoundColumn>
                                                                <asp:BoundColumn DataField="RequestorName" SortExpression="RequestorName" ReadOnly="True"
                                                                    HeaderText="Requestor"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="Vendor" SortExpression="Vendor" ReadOnly="True" HeaderText="Vendor">
                                                                </asp:BoundColumn>
                                                                <asp:BoundColumn DataField="InvoiceNumber" SortExpression="InvoiceNumber" ReadOnly="True"
                                                                    HeaderText="Invoice #"></asp:BoundColumn>
                                                                <asp:BoundColumn DataField="InvoiceDate" SortExpression="InvoiceDate" ReadOnly="True"
                                                                    HeaderText="Invoice Date"></asp:BoundColumn>
                                                            </Columns>
                                                            <PagerStyle Visible="False"></PagerStyle>
                                                        </asp:DataGrid>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
